#include <stdio.h>

#define MAX_SIZE 21

int main(int argc, char *argv[])
{
	int m, n, k, i, j, a[MAX_SIZE][MAX_SIZE];

	scanf("%d %d %d", &m, &n, &k);
	for (i=1; i<=m; i++) {
		for (j=1; j<=n; j++) {
			scanf("%d", a[i][j]);
		}
	}

	int x_max = 1, y_max = 1;
	for (i=1; i<=m; i++0) {
		for (j=1; j<=n; j++) {
			if (a[i][j] > a[x_max][y_max]) {
				x_max = i;
				y_max = j;
			}
		}
	}

	return 0;
}
